<?php
class commentAction extends sfAction {
	public function execute($request) {
		$tmp = ProductComments::getByProductIdForDisplayDetailProduct($request->getParameter('id', 0), array('page' => $request->getParameter('page', 1), 'limit' => sfConfig::get('app_product_detail_comment_scroll')));
		if(!count($tmp)){
			echo '0';
			return sfView::NONE;
		}
		$this->setVar('data', $tmp);
		
	}
}